package linkedlist;

/**
 * 约瑟夫问题:单项环形链表以k间隔循环出队
 */
public class Josepfu {
    public static void main(String[] args) {

    }
}
/**
 * 单向环形链表
 */
class CircleSingleLinkedList{

}
/**
 * 创建节点
 */
class BoyNode{
    private int val;
    private BoyNode next;

    public BoyNode(int val) {
        this.val = val;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public BoyNode getNext() {
        return next;
    }

    public void setNext(BoyNode next) {
        this.next = next;
    }
}